package com.litchi.tutor.service;

import cn.hutool.http.server.HttpServerRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.litchi.tutor.common.entity.Activity;
import com.litchi.tutor.common.entity.User;
import com.litchi.tutor.common.vo.LoginResp;

import javax.servlet.http.HttpServletRequest;

public interface UserService  extends IService<User> {
    LoginResp loginByCode(String code) throws Exception;

    LoginResp loginByOpenId(String openId);

    User getUserInfo(String userid, HttpServletRequest request);

    void updateRole(Integer role , HttpServletRequest request);

    void updateRoleByAdmin(Integer userId, User user);

    void deleteRole(Integer userId);

    void deleteUser(Integer userId, HttpServletRequest request);
}
